package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备信息对象 devices
 * 
 * @author ruoyi
 * @date 2024-08-24
 */
public class Devices extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID（设备编号） */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String devName;

    /** 电站编号 */
    @Excel(name = "电站编号")
    private String stationCode;

    /** 设备SN号 */
    @Excel(name = "设备SN号")
    private String esnCode;

    /** 设备类型ID */
    @Excel(name = "设备类型ID")
    private Long devTypeId;

    /** 软件版本号 */
    @Excel(name = "软件版本号")
    private String softwareVersion;

    /** 机型（只有逆变器有机型） */
    @Excel(name = "机型", readConverterExp = "只=有逆变器有机型")
    private String invType;

    /** 经度 */
    @Excel(name = "经度")
    private Double longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private Double latitude;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long devId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDevName(String devName) 
    {
        this.devName = devName;
    }

    public String getDevName() 
    {
        return devName;
    }
    public void setStationCode(String stationCode) 
    {
        this.stationCode = stationCode;
    }

    public String getStationCode() 
    {
        return stationCode;
    }
    public void setEsnCode(String esnCode) 
    {
        this.esnCode = esnCode;
    }

    public String getEsnCode() 
    {
        return esnCode;
    }
    public void setDevTypeId(Long devTypeId) 
    {
        this.devTypeId = devTypeId;
    }

    public Long getDevTypeId() 
    {
        return devTypeId;
    }
    public void setSoftwareVersion(String softwareVersion) 
    {
        this.softwareVersion = softwareVersion;
    }

    public String getSoftwareVersion() 
    {
        return softwareVersion;
    }
    public void setInvType(String invType) 
    {
        this.invType = invType;
    }

    public String getInvType() 
    {
        return invType;
    }
    public void setLongitude(Double longitude) 
    {
        this.longitude = longitude;
    }

    public Double getLongitude() 
    {
        return longitude;
    }
    public void setLatitude(Double latitude) 
    {
        this.latitude = latitude;
    }

    public Double getLatitude() 
    {
        return latitude;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setDevId(Long devId) 
    {
        this.devId = devId;
    }

    public Long getDevId() 
    {
        return devId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("devName", getDevName())
            .append("stationCode", getStationCode())
            .append("esnCode", getEsnCode())
            .append("devTypeId", getDevTypeId())
            .append("softwareVersion", getSoftwareVersion())
            .append("invType", getInvType())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("createdAt", getCreatedAt())
            .append("devId", getDevId())
            .toString();
    }
}
